import request from "../axios/axios";
let url = "";
//let url = "/api"
export const getData = (current, size, params) => {
  return request({
    url: url+"/webside/getData",
    method: "get",
  });
};

export const publish = (params) => {
  return request({
    url: "/api/webside/publish",
    method: "post",
    data: params,
  });
};

export const register = (params) => {
    return request({
      url: "/api/webside/register",
      method: "post",
      data: params,
    });
  };

  
  export const login = (params) => {
    return request({
      url: "/api/webside/login",
      method: "post",
      data: params,
    });
  };
  
